package com.zhengshang.web.controller.app;

import com.zhengshang.api.domain.AppBalanceRecord;
import com.zhengshang.api.service.IAppBalanceRecordService;
import com.zhengshang.common.core.controller.BaseController;
import com.zhengshang.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 余额记录Controller
 *
 * @author zhengshang
 * @date 2021-06-21
 */
@RestController
@RequestMapping("/app/balanceRecord")
public class AppBalanceRecordController extends BaseController
{
    @Autowired
    private IAppBalanceRecordService appBalanceRecordService;

    /**
     * 查询APP余额记录列表
     */
    @PreAuthorize("@ss.hasPermi('app:balance:list')")
    @GetMapping("/list")
    public TableDataInfo list(AppBalanceRecord appBalanceRecord)
    {
        startPage();
        List<AppBalanceRecord> list = appBalanceRecordService.selectAppBalanceRecordList(appBalanceRecord);
        return getDataTable(list);
    }


}
